import { defineStore } from "pinia";

export const echartTitleStore = defineStore('echartTitle', {
    state:()=>{
        return { title: ""}
    },
    getters: {
        // 类似于计算属性
        gettersBox(state){
            return state.box
        }
    },
    actions: {
        // 相当于 methods
        changeTitle(title){
            this.title = title;
        }
    },
    persist: {
        enabled: true
    }
});